#include "SMyMultilineEditableText.h"

void SMyMultilineEditableText::Construct(const FArguments& InArgs){
	// static FSlateColorBrush Color = FSlateColorBrush(FLinearColor(0.1f, 0.1f, 0.1f));

	TSharedPtr<SScrollBar> HorizontalScrollBar = SNew(SScrollBar).Orientation(Orient_Horizontal);
	TSharedPtr<SScrollBar> VerticalScrollBar = SNew(SScrollBar).Orientation(Orient_Vertical);
	ChildSlot[
		SNew(SBorder)
		// .BorderImage(&Color)
		[
			SNew(SHorizontalBox)
			+SHorizontalBox::Slot()[
				SNew(SVerticalBox)
					+SVerticalBox::Slot()
					.FillHeight(1.0f)[
						SNew(SMultiLineEditableText)
							.HScrollBar(HorizontalScrollBar)
							.VScrollBar(VerticalScrollBar)
					]
					+SVerticalBox::Slot()
					.AutoHeight()[
						HorizontalScrollBar.ToSharedRef()
					]
			]
			+SHorizontalBox::Slot()
			.AutoWidth()[
				VerticalScrollBar.ToSharedRef()
			]
		]
	];
}
